import request from '/@/utils/request'

export interface LogForm {
  log_id: number
  url: string
  method: string
  request_header: any
  params: any
  response_header: any
  result: any
  ip: string
  browser: string
  os: string
  code: number
  error_msg: string
  cost_time: number
  extend: any
  create_time: string
}

// 获取日志列表
export function getLogList(params: any) {
  return request({
    url: '/admin/operationLog/getList',
    method: 'get',
    params,
  })
}

// 获取日志详情
export function getLogDetail(id: number) {
  return request({
    url: '/admin/operationLog/getDetail',
    method: 'get',
    params: { log_id: id },
  })
} 